package com.tdogg.service;

import com.github.pagehelper.PageInfo;
import com.tdogg.entity.Funs;
import com.tdogg.entity.Role;

import java.util.List;

public interface IPermissionService {
    List<Funs> queryAllFuns();

    PageInfo<Role> queryRolesBySplitePage(Integer page, Integer limit, String keyword);

    String addRoleWithPermission(String roleName, Integer[] perList);

    String updateRolePermission(Role role, Integer[] perList);

    String deleteRole(Integer roleId);


    List<Role> findAllRole();
}
